The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
3

New created windows steal focus, how to keep focus on active?

asked 2012-10-25 07:52:02 +0000

lkraav gravatar image

This scenario happens on mostly system startup, where autostart launches like 10 apps in parallel. Let's say I'd like to close some immediately with mod4-shift-c. Problem is that at any given point some other window might pop up, steal focus and receive mod4-shift-c instead of the window I intended it for.

How to solve this? Not seeing an applicable setting in docs.

edit retag flag offensive close merge delete

Comments

lkraav gravatar imagelkraav ( 2012-10-26 13:18:49 +0000 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2012-10-25 08:21:58 +0000

Michael gravatar image

You can’t currently. Also note that if i3 wouldn’t focus these windows, they could steal focus themselves (and some do) — that’s an unsolvable X11 problem.

edit flag offensive delete link more

Comments

I see that popup windows don't steal focus under Ubuntu Unity. So IntelliJ Idea is working perfectly. Why i3wm can't perform like Unity in such case? (My original question was https://faq.i3wm.org/question/2097/how-to-prevent-popup-window-focus-steal/)

sergej gravatar imagesergej ( 2013-06-27 06:35:41 +0000 )edit

I made a small code change that works for me: http://pastebin.com/7wC7w6sZ. I'm fine with applications still being able to rip focus from me if they really want to, but this will at least prevent me from typing my password in a wrong window when it something pops up (often). An option would be nice!

nh2 gravatar imagenh2 ( 2013-08-28 02:30:20 +0000 )edit

Question Tools

Stats

Asked: 2012-10-25 07:52:02 +0000

Seen: 1,569 times

Last updated: Oct 25 '12